String clazzTpl({package}) => """
/// Generates Dart code
/// @Entity()
/// class Person {
///   int age;
///   String name;
/// }
class EntityFactory {
  ///自动生成，误自己添加
  static T generateOBJ<T>(json) {
    if (json == null) return json as T;
    switch (T.toString()) {

      default:
        throw 'EntityFactory generateOBJ, No corresponding case conversion Model';
    }
  }
}
""";
